import request from '@/utils/request'
export function houseList(params) {
	params.orderByColumn ='createTime'
	params.isAsc ='desc'
	return request({
		url: '/house/openapi/list',
		params
	})
}
export function houseData(id) {
	return request({
		url: '/house/openapi/' + id,
	})
}
export const saveHouse = (data) => {
	return request({
		url: "/house?lang=en",
		method: "post",
		data: data
	})
}

export const delHouse = (id) => {
	return request({
		url: "/house/" + id,
		method: "delete"
	})
}
//收藏
export const collectHouse = (data) => {
	return request({
		url: "/collect?lang=en",
		method: "post",
		data
	})
}
//收藏列表
export const getCollect = (data) => {
	return request({
		url: "/collect/list",
		method: "get",
		data
	})
}

//取消收藏

export const delCollect = (data) => {
	return request({
		url: "/collect",
		method: "put",
		data
	})
}